package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Comment;
import cn.wolfcode.trip.base.domain.NewsComment;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface NewsCommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(NewsComment record);

    NewsComment selectByPrimaryKey(Long id);

    List<NewsComment> selectAll();

    int updateByPrimaryKey(NewsComment record);

    List<NewsComment> queryForList(QueryObject qo);

    Integer queryCountByNewsCommentId(Long newsCommentId);

    List<NewsComment> listByParentId(Long id);

}